package com.xjrh.traintravel.collector.netty.command.front;

import com.xjrh.traintravel.collector.common.CodeConvertor;
import com.xjrh.traintravel.collector.netty.command.BaseCommand;

import java.io.Serializable;

/**
 * 透传数据
 *
 * @author snps
 * @create 2022-04-14 8:13
 * @describe
 **/
public class TransmitData extends BaseCommand implements Serializable {

    private static final long serialVersionUID = -727719270039978020L;


    /**
     * COM口
     */
    private Integer com;

    /**
     * 前置类型
     */
    private Integer frontType;

    /**
     * 数据长度
     */
    private Integer dataLength;

    /**
     * 数据
     */
    private String data;


    /*****************************************
     * Getter and Setter
     */
    public Integer getCom() {
        return com;
    }

    public void setCom(Integer com) {
        this.com = com;
    }

    public Integer getFrontType() {
        return frontType;
    }

    public void setFrontType(Integer frontType) {
        this.frontType = frontType;
    }

    public Integer getDataLength() {
        return dataLength;
    }

    public void setDataLength(Integer dataLength) {
        this.dataLength = dataLength;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "TransmitData{" +
                "com=" + com +
                ", frontType=" + frontType +
                ", dataLength=" + dataLength +
                ", data='" + data + '\'' +
                '}';
    }

}